#include "customTimer.h"

double gettime()
{
    struct timespec tim;
    clock_gettime(CLOCK_MONOTONIC, &tim);
    return (double)tim.tv_sec + (double)tim.tv_nsec*1e-9;
}


double getTime_ms()
{
    struct timespec tim;
    clock_gettime(CLOCK_MONOTONIC, &tim);

    return (double)tim.tv_sec * 1000 + (double)tim.tv_nsec*1e-6;

}